Visual Basic (Declaration) | |
---|---|
Overloads Function Pager( _ ByVal sortSelector As IdeaBlade.Core.ISortSelector, _ ByVal pageSize As Integer, _ Optional ByVal predicate As Expression(Of Func(Of T,Boolean)), _ Optional ByVal fetchOptions As Action(Of IFetchOptions(Of T)) _ ) As IPager(Of T) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As IPagerRepository(Of T) Dim sortSelector As IdeaBlade.Core.ISortSelector Dim pageSize As Integer Dim predicate As Expression(Of Func(Of T,Boolean)) Dim fetchOptions As Action(Of IFetchOptions(Of T)) Dim value As IPager(Of T) value = instance.Pager(sortSelector, pageSize, predicate, fetchOptions) |
C# | |
---|---|
IPager<T> Pager( IdeaBlade.Core.ISortSelector sortSelector, int pageSize, Expression<Func<T,bool>> predicate, Action<IFetchOptions<T>> fetchOptions ) |
C++/CLI | |
---|---|
IPager<T^>^ Pager( IdeaBlade.Core.ISortSelector^ sortSelector, int pageSize, Expression<Func<T^,bool>^>^ predicate, Action<IFetchOptions<T^>^>^ fetchOptions ) |
Parameters
- sortSelector
- Required sorting criteria.
- pageSize
- The desired page size.
- predicate
- Optional predicate to filter the paged entities.
- fetchOptions
- Optional delegate to specify additional fetching options.
Return Value
IPager<T> which allows the entities to be paged.Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family